﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 影片售票系统
{
    public partial class xiugai : Form
    {
        public xiugai()
        {
            InitializeComponent();
        }
        private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
        {

        }
        private void button3_Click(object sender, EventArgs e)
        {

        }
        private void label10_Click(object sender, EventArgs e)
        {

        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
          
        }
        private void xiugai_Load(object sender, EventArgs e)
        {
            this.textBox1.Text = Class1.name;
        }

        private void fileSystemWatcher1_Changed(object sender, System.IO.FileSystemEventArgs e)
        {

        }
        int j = 0;
        private void button2_Click(object sender, EventArgs e)
        {
            j++;
            string sql = "select * from YH_1 JOIN TP_1 on YH_1.tp_id = TP_1.id";
            DataTable table = common.DBHelper.read(sql);
            string zx;
            zx = table.Rows[j]["tupian"].ToString();
            this.pictureBox1.Image = Image.FromFile(zx);
            if (j == 3)
            {
                j = 0;
            }
            string name = this.textBox1.Text;
            string sex  = "女" ;
            if (this.radioButton1.Checked)
            {
                sex = "男";
            }

            string qianming = this.textBox2.Text.Trim();
            string tupian = this.pictureBox1.Text;
        }
    }
}  
